<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>更新</title>
</head>
<body>
    <h2>Update</h2>
    <form method="post" th:action="@{/update}">
        <input type="hidden" value="PUT" name="_method"/>
        <input type="hidden" th:value="${employee.id}" name="id"/>
        名字: <input name="name" th:value="${employee.name}"><br/>
        手机: <input name="phone" th:value="${employee.phone}"><br/>
        性别: <input type="radio" name="gender" value="1" th:field="${employee.gender}"> 男 <input type="radio" th:field="${employee.gender}" name="gender" value="0"> 女 <br/>
        <input type="submit" value="更新"><br/>
    </form>
</body>
</html>